﻿using System;

namespace diantou.web.ajax.enterprise
{
    /// <summary>
    /// 考试人员
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true)]
    class examUser : permissionHandle<examUser>
    {
        /// <summary>
        /// 删除考试人员
        /// </summary>
        /// <param name="examId"></param>
        /// <param name="userIds"></param>
        /// <param name="onReturn"></param>
        public void Delete(int examId, int[] userIds, Action<fastCSharp.net.returnValue<int>> onReturn)
        {
            diantou.examDataAccess.tcpCall.examUser.delete(examId, userIds, currentUser.Id, onReturn);
        }
        /// <summary>
        /// 删除所有考试人员
        /// </summary>
        /// <param name="examId"></param>
        /// <param name="onReturn"></param>
        public void DeleteAll(int examId, Action<fastCSharp.net.returnValue<int>> onReturn)
        {
            diantou.examDataAccess.tcpCall.examUser.delete(examId, currentUser.Id, onReturn);
        }
    }
}
